package com.smart.module.car.web;

import com.smart.common.model.Result;
import com.smart.module.car.entity.CarParkLinkman;
import com.smart.module.car.service.CarParkLinkmanService;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 停车场联系人管理
 */
@RestController
@RequestMapping("/car/parkLinkman/")
public class ParkLinkmanController {
    @Autowired
    private CarParkLinkmanService carParkLinkmanService;

    @PostMapping("list")
    @RequiresRoles(value = {"admin","orgAdmin"},logical = Logical.OR)
    public Result list(CarParkLinkman entity){
        return carParkLinkmanService.list(entity);
    }

}
